
<!DOCTYPE html>
<html>
	<head>
	    <title>订单管理</title>
	    <meta charset="UTF-8">
	    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	    <link rel="stylesheet" type="text/css" href="css/bootstrap-responsive.min.css" />
	    <link rel="stylesheet" type="text/css" href="css/style.css" />
	    <script type="text/javascript" src="js/jquery.min.js"></script>  
	</head>
	<body>
		<form class="form-inline definewidth m20" action="back_order_search.php" method="post">
			订单信息：<input name="gsn" id="search" class="abc input-default" value="" placeholder="查询订单"></input>&nbsp;&nbsp;
			<button type="submit" class="btn btn-primary" >查询</button>&nbsp;&nbsp; 
		    
		</form>
		<table class="table table-bordered table-hover definewidth m10">
		    <thead>
			    <tr>
					<th>订单号</th>
			        <th>卖家id</th>
			        <th>卖家昵称</th>
			        <th>卖家电话</th>
			        <th>卖家地址</th>
			        <th>商品信息</th>
			        <th>商品图片</th>
			        <th>商品价格</th>
			        <th>买家名称</th>
			        <th>买家电话</th>
			        <th>买家地址</th>
			        <th>订单时间</th>
			        <th style="text-align:center;">操作</th>
			    </tr>
		    </thead>

            <?php foreach($article as $k=>$v):?>
			<tr>
				<td><?php echo $v['bianhao'];?></td>
				<td><?php echo $v['salerid'];?></td>
				<td><?php echo $v['saler_name'];?></td>
				<td><?php echo $v['saler_tel'];?></td>
				<td><?php echo $v['saler_address'];?></td>
				<td><?php echo $v['goodsname'];?></td>
				<td style="width:80px;height: 80px;"><img src="../images/goods/<?php echo $v['bigtypeid'];?>/<?php echo $v['smalltypeid'];?>/<?php echo $v['picture'];?>" style="width: 100%;height: 100%;"></td>
				<td><?php echo $v['cost'];?></td>
				<td><?php echo $v['tj_name'];?></td>
				<td><?php echo $v['tj_tel'];?></td>
				<td><?php echo $v['tj_address'];?></td>
				<td><?php echo $v['pub_time'];?></td>
				<td style="text-align:center;">                
					<a href="back_order_delete.php?id=<?php echo $v['tj_id']?>" onclick="return confirm('是否已完成该订单？');">完成</a>&nbsp;            
				</td>
			</tr>
            <?php endforeach;?>

		</table>
	</body>
</html>